<%@page import="com.xyw.service.impl.UserBizImpl"%>
<%@page import="com.xyw.service.UserBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.xyw.Dao.UserDao,com.xyw.entity.User"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
     <title>用户列表</title>
     <!--flexslider-css-->
<!--bootstrap-->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<!--coustom css-->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<!--fonts-->
<link
	href='http://fonts.useso.com/css?family=Open+Sans:400,300,300italic,400italic,800italic,800,700italic,700,600,600italic'
	rel='stylesheet' type='text/css'>
<!--/fonts-->
<!--script-->
<script src="js/jquery.min.js"> </script>
<!-- js -->
<script src="js/bootstrap.js"></script>
<!-- js -->
<!-- js -->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<!--/script-->
   </head>
   
   <body>
   <div class="banner-forms">   
   <table border="1" width="500;" height="150" align="center">
          <tr align="center">
           <td>编号</td>
           <td>名字</td>
           <td>年龄</td>
           <td>邮箱</td>
           <td>昵称</td>
        </tr>
         <%
            UserBiz userBiz=new UserBizImpl();
            List<User> userlist =userBiz.queryall();    
            for(User u:userlist)
            {%>
           <tr align="center">
               <td><%=u.getUserId()%></td>
               <td><%=u.getUserName() %></td>
               <td><%=u.getUserAge() %></td>
               <td><%=u.getUserEmail() %></td>
               <td><%=u.getUserNickname() %></td>

           </tr>
             <%}
        %>
   </table>
   </div>

   </body>
 </html>